<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<select>
			
			<!--<option>北京</option>
			<option>上海</option>
			<option>广州</option>
			<option>深圳</option>-->
			
			<script>
				
				var cities =['北京','上海','广州','深圳'];
				
				var length = cities.length;
				console.log(length);
				//document.write('<option>深圳</option>');
				
				
				/**
				 * 黄老师  13926583118
				 * 循环从数组中打印城市
				 * 这里多行注释
				 * 
				 */
				for(var index =0; index<length;index++ ){
					var value = cities[index];
					document.write('<option>'+value+'</option>');
				}
				
				console.log("%c 黄老师  13926583118","color:red");
				
				
				
			</script>
			
			
		</select>
		
		<script>
				
				
				document.write('<a href="http://www.baidu.com">百度1</a>');
				
		</script>
		
		<a href="http://www.baidu.com">百度2</a>
	</body>
</html>
